package thinkinjava1.ch06;

/**
 * Wind 上溯造型
 * <p>
 * author: 顾博君 <br>
 * time:   2017/2/13 14:33 <br>
 * e-mail: gubojun@csii.com.cn <br>
 * </p>
 */

class Instrument {
    public void play() {
        System.out.println("play");
    }

    static void tune(Instrument i) {
        i.play();
    }
}

public class Wind extends Instrument {
    public static void main(String[] args) {
        Wind flute = new Wind();
        Instrument.tune(flute);
    }
}
